Skip to content

Add WordPress submission readiness workflow#121

Merged
acodebeard merged 8 commits into
mainfrom
chore/wp-submission-readiness
Jun 8, 2026
Merged

Add WordPress submission readiness workflow#121
acodebeard merged 8 commits into
mainfrom
chore/wp-submission-readiness

Conversation

@acodebeard

Copy link
Copy Markdown
Owner

Summary

Adds a reusable WP Submission Readiness workflow for WordPress.org release-candidate checks.

The workflow:

  • builds the release zip from release.json
  • runs Composer validation, existing PHP quality checks, PHPStan, and browser smoke coverage
  • unpacks the release artifact and runs WordPress Plugin Check against the packaged plugin
  • runs a repo-local metadata/artifact scan that expects the final WordPress.org identity to be Waypoints with slug/text domain waypoints
  • uploads the built package and Plugin Check output as artifacts

Also adds tools/check-wp-submission-readiness.php plus PHPUnit coverage for ready, legacy-slug, and not-production-ready readme cases. The scan is intentionally stricter than normal PR CI and is expected to fail against the current package until the deeper waypoints slug/text-domain rename and production-readiness copy updates are complete.

Validation

  • cd plugin/plan-your-day && composer phpunit -- tests/SubmissionReadinessToolTest.php
  • php -l plugin/plan-your-day/tools/check-wp-submission-readiness.php
  • cd plugin/plan-your-day && composer test
  • cd plugin/plan-your-day && composer phpstan
  • git diff --cached --check
  • cd plugin/plan-your-day && composer build-release
  • php tools/check-wp-submission-readiness.php --plugin-dir=. --artifact=/opt/lampp/htdocs/plan-your-day/dist/plan-your-day-0.5.zip --expected-name=Waypoints --expected-slug=waypoints failed with the intended current blockers: old text domain/slug, not-production-ready readme copy, and old artifact top-level directory.
  • Control scan with --expected-slug=plan-your-day only failed on the intentional not-production-ready readme copy.

@acodebeard acodebeard force-pushed the chore/wp-submission-readiness branch from bdb5dac to 02ccbd5 Compare June 6, 2026 22:40
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@acodebeard acodebeard marked this pull request as ready for review June 8, 2026 22:16
@acodebeard acodebeard merged commit 1c6d094 into main Jun 8, 2026
10 checks passed
@acodebeard acodebeard deleted the chore/wp-submission-readiness branch June 8, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants